package com.ecar.core.manager.entity;

import java.io.Serializable;
import java.util.Date;

public class LogOps implements Serializable {
    private Integer id;

    private Integer staffId;

    private String username;

    private String moduleMenu;

    private String ops;

    private String opsParameter;

    private Date opsTime;

    private String ip;

    private String browser;

    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getModuleMenu() {
        return moduleMenu;
    }

    public void setModuleMenu(String moduleMenu) {
        this.moduleMenu = moduleMenu;
    }

    public String getOps() {
        return ops;
    }

    public void setOps(String ops) {
        this.ops = ops;
    }

    public String getOpsParameter() {
        return opsParameter;
    }

    public void setOpsParameter(String opsParameter) {
        this.opsParameter = opsParameter;
    }

    public Date getOpsTime() {
        return opsTime;
    }

    public void setOpsTime(Date opsTime) {
        this.opsTime = opsTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LogOps other = (LogOps) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getModuleMenu() == null ? other.getModuleMenu() == null : this.getModuleMenu().equals(other.getModuleMenu()))
            && (this.getOps() == null ? other.getOps() == null : this.getOps().equals(other.getOps()))
            && (this.getOpsParameter() == null ? other.getOpsParameter() == null : this.getOpsParameter().equals(other.getOpsParameter()))
            && (this.getOpsTime() == null ? other.getOpsTime() == null : this.getOpsTime().equals(other.getOpsTime()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getBrowser() == null ? other.getBrowser() == null : this.getBrowser().equals(other.getBrowser()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getModuleMenu() == null) ? 0 : getModuleMenu().hashCode());
        result = prime * result + ((getOps() == null) ? 0 : getOps().hashCode());
        result = prime * result + ((getOpsParameter() == null) ? 0 : getOpsParameter().hashCode());
        result = prime * result + ((getOpsTime() == null) ? 0 : getOpsTime().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getBrowser() == null) ? 0 : getBrowser().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}